<template>
  <div class="creat_en_vue_content">
    <Header name="axios" />
    <a class="header3" href="http://www.axios-js.com/">
      官方文档
    </a>
    <el-button @click="req" size="small" type="primary">请求数据</el-button>
  </div>
</template>

<script>
export default {
  name: "axios",
  mounted() {},
  methods: {
    req() {
      this.$axios.get("/api").then(res => {
        console.log("ahhahshdh", res);
      });
    }
  }
};
</script>

<style scoped lang="stylus">
@import "components/common_md_class.styl"

.creat_en_vue_content
  display flex;
  width 100%;
  height 100%;
  padding-left 32px;
  flex-direction column;

.creat_en_vue_page
  display flex;
  flex-direction column;
  span
    padding-top 4px;
</style>
